#include <header.h>

int main(){
    int file_fd = open("1.txt",O_RDWR);
    int file_fd2 = open("./zs/1.txt",O_RDWR | O_CREAT,0666);

    while(1){
        char buf[30000] = {0};
        ssize_t readsize = read(file_fd,buf,sizeof(buf));
        write(file_fd2,buf,readsize);
    }

    close(file_fd);
    close(file_fd2);
    return 0;
}

